﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using AppSocketModel;
using AppSocketService.System;
using Microsoft.AspNetCore.Authorization;

namespace BCGPSRESTful.Controllers.Page.System
{
    /// <summary>
    /// 系统功能
    /// </summary>
    [ApiExplorerSettings(GroupName = "CompanyPage")]
    [Route("api/[controller]")]
    [ApiController]
    public class SystemController : PageBaseController
    {
        /// <summary>
        /// 
        /// </summary>
        public ISystemService systemService;

        /// <summary>
        /// 
        /// </summary>
        /// <param name="systemService"></param>
        public SystemController(ISystemService systemService)
        {
            this.systemService = systemService;
        }


        /// <summary>
        /// 获取GPS项目中用到的枚举类型信息
        /// </summary>
        /// <param name="enum_type_name">枚举类型名称</param>  
        /// <returns></returns>
        [HttpGet("[action]")] 
        [ProducesResponseType(typeof(List<GpsEnumType>), 200)]
        public List<GpsEnumType> GetGpsEnumTypeList(string enum_type_name)
        {
            return systemService.GetGpsEnumTypeList(enum_type_name);
        }

    }
}